package com.rht.gulimallorder.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * 
 * 
 * @author rht
 * @email rht@qq.com
 * @date 2024-11-06 17:28:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("mq_message")
public class MqMessageEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
			@TableId
			private String messageId;

	/**
	 * 
	 */
			private String content;

	/**
	 * 
	 */
			private String toExchane;

	/**
	 * 
	 */
			private String routingKey;

	/**
	 * 
	 */
			private String classType;

	/**
	 * 0-新建 1-已发送 2-错误抵达 3-已抵达
	 */
			private Integer messageStatus;

	/**
	 * 
	 */
			   @DateTimeFormat(pattern = "yyyy-MM-dd")
		private Date createTime;

	/**
	 * 
	 */
			   @DateTimeFormat(pattern = "yyyy-MM-dd")
		private Date updateTime;


}
